package com.lmk;

import javax.swing.tree.FixedHeightLayoutCache;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class write {
    public static void main(String[] args) {
        String path = "D:\\dev\\work\\note\\一阶段（JavSE)\\day01.md";
        File file = new File(path);
        try (BufferedReader br = new BufferedReader(new FileReader(file))) {
            String lin = null;
            while ((lin = br.readLine()) != null) {
                System.out.println(lin);
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
